/*
 * Copyright 2008 Jens Meiss
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.googlecode.hmvc4gwt.example.hmvcblog.frontend.blog.client.blog.blogentry.comment.add;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.hmvc4gwt.client.view.AViewGwt;

/**
 * 
 * @author jens.meiss
 */
public class AddCommentView extends AViewGwt {
	
	private Grid gridAddCommentView;
	
	private Label labelAuthorName;
	
	private TextBox textBoxAuthorName;
	
	private Label labelTextAreaComment;
	
	private TextArea textAreaComment;
	
	private Button buttonAdd;
	
	private Button buttonCancel;

	/**
	 * @return the buttonAdd
	 */
	public Button getButtonAdd() {
		return buttonAdd;
	}

	/**
	 * @return the buttonCancel
	 */
	public Button getButtonCancel() {
		return buttonCancel;
	}

	/**
	 * @return the gridPanelAddCommentView
	 */
	public Grid getGridAddCommentView() {
		return gridAddCommentView;
	}

	/**
	 * @return the labelAuthorName
	 */
	public Label getLabelAuthorName() {
		return labelAuthorName;
	}

	/**
	 * @return the labelTextAreaComment
	 */
	public Label getLabelTextAreaComment() {
		return labelTextAreaComment;
	}

	/**
	 * @return the textAreaComment
	 */
	public TextArea getTextAreaComment() {
		return textAreaComment;
	}

	/**
	 * @return the textBoxAuthorName
	 */
	public TextBox getTextBoxAuthorName() {
		return textBoxAuthorName;
	}

	public Widget getWidget() {
		return getGridAddCommentView();
	}

	/**
	 * @param buttonAdd the buttonAdd to set
	 */
	public void setButtonAdd(Button buttonAdd) {
		this.buttonAdd = buttonAdd;
	}

	/**
	 * @param buttonCancel the buttonCancel to set
	 */
	public void setButtonCancel(Button buttonCancel) {
		this.buttonCancel = buttonCancel;
	}

	/**
	 * @param gridPanelAddCommentView the gridPanelAddCommentView to set
	 */
	public void setGridAddCommentView(Grid gridPanelAddCommentView) {
		this.gridAddCommentView = gridPanelAddCommentView;
	}

	/**
	 * @param labelAuthorName the labelAuthorName to set
	 */
	public void setLabelAuthorName(Label labelAuthorName) {
		this.labelAuthorName = labelAuthorName;
	}

	/**
	 * @param labelTextAreaComment the labelTextAreaComment to set
	 */
	public void setLabelTextAreaComment(Label labelTextAreaComment) {
		this.labelTextAreaComment = labelTextAreaComment;
	}

	/**
	 * @param textAreaComment the textAreaComment to set
	 */
	public void setTextAreaComment(TextArea textAreaComment) {
		this.textAreaComment = textAreaComment;
	}

	/**
	 * @param textBoxAuthorName the textBoxAuthorName to set
	 */
	public void setTextBoxAuthorName(TextBox textBoxAuthorName) {
		this.textBoxAuthorName = textBoxAuthorName;
	}

}
